package com.mall.user.dal.persistence;

import com.mall.user.dal.entitys.User;
import com.mall.user.dto.IUserInfoDto;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

/**
 * @Classname UserMapper
 * @Description
 * @Date 2021/11/16 8:58
 * @Author terrance_swn
 */
public interface UserMapper extends Mapper<User>, MySqlMapper<User> {

    /**
     * 联表查询，得到用户信息
     * @param username
     * @return
     */
    IUserInfoDto selectUserInfo(@Param("username") String username);
}
